package com.zhiyu.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@PropertySource(value = "classpath:return-code.properties", encoding = "UTF-8")
@ConfigurationProperties(prefix = "return")
public class ReturnCodeConfig {

    private String successCode;
    private String successMessage;

    private String fieldInvalidCode;
    private String fieldInvalidMessage;

    private String loginFailCode;
    private String loginFailMessage;

    private String accountExisitedCode;
    private String accountExisitedMessage;

    private String registerFailCode;
    private String registerFailMessage;

    private String tokenInvalidCode;
    private String tokenInvalidMessage;

    private String noPermissionCode;
    private String noPermissionMessage;

    private String requireAuthenticationCode;
    private String requireAuthenticationMessage;

    private String invalidResourceCode;
    private String invalidResourceMessage;

    public String getSuccessCode() {
        return successCode;
    }

    public void setSuccessCode(String successCode) {
        this.successCode = successCode;
    }

    public String getSuccessMessage() {
        return successMessage;
    }

    public void setSuccessMessage(String successMessage) {
        this.successMessage = successMessage;
    }

    public String getFieldInvalidCode() {
        return fieldInvalidCode;
    }

    public void setFieldInvalidCode(String fieldInvalidCode) {
        this.fieldInvalidCode = fieldInvalidCode;
    }

    public String getFieldInvalidMessage() {
        return fieldInvalidMessage;
    }

    public void setFieldInvalidMessage(String fieldInvalidMessage) {
        this.fieldInvalidMessage = fieldInvalidMessage;
    }

    public String getLoginFailCode() {
        return loginFailCode;
    }

    public void setLoginFailCode(String loginFailCode) {
        this.loginFailCode = loginFailCode;
    }

    public String getLoginFailMessage() {
        return loginFailMessage;
    }

    public void setLoginFailMessage(String loginFailMessage) {
        this.loginFailMessage = loginFailMessage;
    }

    public String getAccountExisitedCode() {
        return accountExisitedCode;
    }

    public void setAccountExisitedCode(String accountExisitedCode) {
        this.accountExisitedCode = accountExisitedCode;
    }

    public String getAccountExisitedMessage() {
        return accountExisitedMessage;
    }

    public void setAccountExisitedMessage(String accountExisitedMessage) {
        this.accountExisitedMessage = accountExisitedMessage;
    }

    public String getRegisterFailCode() {
        return registerFailCode;
    }

    public void setRegisterFailCode(String registerFailCode) {
        this.registerFailCode = registerFailCode;
    }

    public String getRegisterFailMessage() {
        return registerFailMessage;
    }

    public void setRegisterFailMessage(String registerFailMessage) {
        this.registerFailMessage = registerFailMessage;
    }

    public String getTokenInvalidCode() {
        return tokenInvalidCode;
    }

    public void setTokenInvalidCode(String tokenInvalidCode) {
        this.tokenInvalidCode = tokenInvalidCode;
    }

    public String getTokenInvalidMessage() {
        return tokenInvalidMessage;
    }

    public void setTokenInvalidMessage(String tokenInvalidMessage) {
        this.tokenInvalidMessage = tokenInvalidMessage;
    }

    public String getNoPermissionCode() {
        return noPermissionCode;
    }

    public void setNoPermissionCode(String noPermissionCode) {
        this.noPermissionCode = noPermissionCode;
    }

    public String getNoPermissionMessage() {
        return noPermissionMessage;
    }

    public void setNoPermissionMessage(String noPermissionMessage) {
        this.noPermissionMessage = noPermissionMessage;
    }

    public String getRequireAuthenticationCode() {
        return requireAuthenticationCode;
    }

    public void setRequireAuthenticationCode(String requireAuthenticationCode) {
        this.requireAuthenticationCode = requireAuthenticationCode;
    }

    public String getRequireAuthenticationMessage() {
        return requireAuthenticationMessage;
    }

    public void setRequireAuthenticationMessage(String requireAuthenticationMessage) {
        this.requireAuthenticationMessage = requireAuthenticationMessage;
    }

    public String getInvalidResourceCode() {
        return invalidResourceCode;
    }

    public void setInvalidResourceCode(String invalidResourceCode) {
        this.invalidResourceCode = invalidResourceCode;
    }

    public String getInvalidResourceMessage() {
        return invalidResourceMessage;
    }

    public void setInvalidResourceMessage(String invalidResourceMessage) {
        this.invalidResourceMessage = invalidResourceMessage;
    }
}
